{yun:}include file="$wapstyle/member/cheader.htm"{/yun}

<div class="com_picshow_Box">
    <div id="">
        <div class="clear"></div>
        <ul>
            <li>
                <div class="com_picshow" style="width: 100%;">
                    <div class="com_picshow_c">
                        <div class="com_picshow_name" style="text-align: left;">{yun:}$city{/yun}</div>
                        <div class="com_picshow_name" style="text-align: left;">{yun:}$address{/yun}</div>
                        <div class="com_picshow_cz" style="text-align: left;">
                           默认地址
                        </div>
                    </div>
                </div>
            </li>
    
            
        </ul>
        <div class="clear"></div>

        {yun:}foreach item=show from=$addcompanyaddresslist{/yun}
        <div class="com_picshow" style="width: 100%;">
            <div class="com_picshow_c">
                <div class="com_picshow_name" style="text-align: left;">{yun:}$show.city{/yun}</div>
                <div class="com_picshow_name" style="text-align: left;">{yun:}$show.address{/yun}</div>
                <div class="com_picshow_cz" style="text-align: left;">
                    <a href="index.php?c=addcompanyaddress&id={yun:}$show.id{/yun}" class="com_picshow_cz_xg">修改</a>
                    <a href="javascript:void(0)" onclick="delshowpic2('{yun:}$show.id{/yun}'); " class="">删除</a>
                </div>
            </div>
        </div>
        {yun:}/foreach{/yun}
        
        <div class="clear"></div>
    </div>
</div>
<div class="com_picshow_bth">
    <button type="button" class="" onclick="location.href='index.php?c=addcompanyaddress'">新增企业地址</button>
</div>

<script>
    function delshowpic2(id) {
        var id = id;
        var url = wapurl + "member/index.php?c=addressdel";
        $.post(url, {
            id: id
        }, function(data) {
            if(data == 3) {
                layermsg("请选择地址!", 2, 8);
                return false;
            } else if(data == 2) {
                layermsg("删除失败!", 2, 8);
                return false;
            } else if(data == 1) {
                layermsg("删除成功！", 2, function() {
                    window.location.reload();
                });
                return false;
            }
        });
    }
</script>

{yun:}include file="$wapstyle/footer.htm"{/yun}